{% extends 'fengge/base.html' %}

{% block html_title %}
	{{ system_info.fullname }}
{% endblock %}

{% block html_head_script %}
	{% load staticfiles %}
{#	<link rel="stylesheet" type="text/css" href="{% static 'jscol/fa-3.2.1/css/font-awesome.min.css' %}">#}
{#	<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">#}
	<link href="{% static 'favicon.ico' %}" rel="shortcut icon">
	<script type="text/javascript" src="{% static 'js/easyui/jquery.min.js' %}"></script>
{#	<script type="text/javascript" src="{% static 'js/easyui/jquery.easyui.min.js' %}"></script>#}
	<!-- 拖拽 Sortable -->
	<script src="{% static 'jscol/sortable/Sortable.js' %}" type="text/javascript"></script>
	<!--滚动条效果 nanoScroller -->
	<link type="text/css" rel="stylesheet" href="{% static 'jscol/nanoScroller/css/nanoscroller.css' %}" />
	<script type="text/javascript" src="{% static 'jscol/nanoScroller/javascripts/jquery.nanoscroller.min.js' %}"></script>
	<!-- 弹出提示 alertify -->
	<link type="text/css" rel="stylesheet" href="{% static 'jscol/alertify/alertify_dx.css' %}" />
{#	<link type="text/css" rel="stylesheet" href="{% static 'jscol/alertify/alertify.dx.css' %}" />#}
  <!-- 地图的样式 Leaflet -->
	<link rel="stylesheet" href="{%  static 'fengge/ui/pc/themes/default/leaflet_fg.css' %}" />
	<link rel="stylesheet" href="{%  static 'jscol/leaflet-0.7.5/leaflet.draw.css' %}" />
    <link rel="stylesheet" href="{%  static 'jscol/leaflet-0.7.5/Leaflet.Coordinates-0.1.5.css' %}"/>
	<link rel="stylesheet" href="{%  static 'fengge/ui/pc/themes/default/rightbar.css' %}" />
	<link rel="stylesheet" href="{%  static 'fengge/ui/pc/themes/default/sidebar_v2.css' %}" />

	<link rel="stylesheet" type="text/css" href="{% static 'fengge/ui/pc/themes/default/fg_common.css' %}" />
	<link rel="stylesheet" type="text/css" href="{% static 'fengge/ui/pc/themes/default/fg_structure.css' %}" />
	<link rel="stylesheet" type="text/css" href="{% static 'fengge/ui/pc/themes/default/fg_project.css' %}" />
	<link rel="stylesheet" type="text/css" href="{% static 'fengge/ui/pc/themes/default/fg_widget.css' %}" />
	<link rel="stylesheet" type="text/css" href="{% static 'fengge/ui/pc/themes/default/tools.css' %}" />
	<link rel="stylesheet" type="text/css" href="{% static 'fengge/ui/pc/themes/default/console.css' %}" />

	<link rel="stylesheet" type="text/css" href="/css/project" />
	<link rel="stylesheet" type="text/css" href="/css/datasets" />
	<link rel="stylesheet" type="text/css" href="/css/system" />

{% endblock %}

{% block html_head %}
{% endblock %}

{% block html_body_script %}
	<script>
	var DX;
	if (!DX) {
		DX = {}
	}
	DX.NEWFONTAWESOME = true;
	</script>

{% if is_developer %}
	<script src="{% static 'js/underscore.js' %}"></script>
	<script src="{% static 'js/backbone.js' %}"></script>
	<script src="{% static 'js/backbone-tastypie.js' %}"></script>

	<!-- 弹出层 layer -->
	<script src="{% static 'js/layer-2.2/layer.js' %}"></script>
	{#		<script src="{% static 'js/layer-2.2/extend/layer.ext.js' %}"></script>#}
	<!-- 地图 Leaflet 及相关插件 -->
	<script src="{% static 'jscol/leaflet-0.7.5/leaflet-src.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/leaflet-providers.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/leaflet.ChineseTmsProviders.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/leaflet-omnivore.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/leaflet.draw-touch-src.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/leaflet-sidebar-v2.min.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/leaflet.contextmenu.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/Leaflet.Coordinates-0.1.5.src.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/Leaflet.Dialog.js' %}"></script>
	{#	<script src="{% static 'jscol/leaflet-0.7.5/L.Control.Sidebar.js' %}"></script>#}
	<!-- tabledit -->
	<script src="{% static 'jscol/tabledit/jquery.tabledit.js' %}"></script>
	<!-- 高德地图 -->
	<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=facc5fcf9346efd043d6baeb0d25b6aa"></script>
	<!-- 图表: highcharts -->
	<script src="{% static 'js/highstock/highstock.src.js' %}"></script>
	<script src="{% static 'js/highstock/highcharts-more.js' %}"></script>
	<script src="{% static 'js/highstock/modules/exporting.js' %}"></script>
	<script src="{% static 'js/highstock/plugins/scalable-yaxis.js' %}"></script>
	<script src="{% static 'js/highstock/plugins/highcharts-downsample.js' %}"></script>
	<script src="{% static 'js/highstock/plugins/jalali.js' %}"></script>
	<script src="{% static 'js/highstock/plugins/highcharts-localization.js' %}"></script>
	<!-- d3 及colorbar -->
	<script src="{% static 'js/d3/d3.js' %}"></script>
{% else %}
	<script src="{% static 'js/underscore-min.js' %}"></script>
	<script src="{% static 'js/backbone-min.js' %}"></script>
	<script src="{% static 'js/backbone-tastypie.js' %}"></script>

	<!-- 弹出层 layer -->
	<script src="{% static 'js/layer-2.2/layer.js' %}"></script>
	{#		<script src="{% static 'js/layer-2.2/extend/layer.ext.js' %}"></script>#}
	<!-- 地图 Leaflet 及相关插件 -->
	<script src="{% static 'jscol/leaflet-0.7.5/leaflet.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/leaflet-providers.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/leaflet.ChineseTmsProviders.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/leaflet-omnivore.min.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/leaflet.draw-touch.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/leaflet-sidebar-v2.min.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/leaflet.contextmenu.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/Leaflet.Coordinates-0.1.5.src.js' %}"></script>
	<script src="{% static 'jscol/leaflet-0.7.5/Leaflet.Dialog.js' %}"></script>
	<!-- tabledit -->
	<script src="{% static 'jscol/tabledit/jquery.tabledit.min.js' %}"></script>
	<!-- 高德地图 -->
	<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=facc5fcf9346efd043d6baeb0d25b6aa"></script>
	<!-- 图表: highcharts -->
	<script src="{% static 'js/highstock/highstock.js' %}"></script>
	<script src="{% static 'js/highstock/highcharts-more.js' %}"></script>
	<script src="{% static 'js/highstock/modules/exporting.js' %}"></script>
	<script src="{% static 'js/highstock/plugins/scalable-yaxis.js' %}"></script>
	<script src="{% static 'js/highstock/plugins/highcharts-downsample.js' %}"></script>
	<script src="{% static 'js/highstock/plugins/jalali.js' %}"></script>
	<script src="{% static 'js/highstock/plugins/highcharts-localization.js' %}"></script>
	<!-- d3 及colorbar -->
	<script src="{% static 'js/d3/d3.min.js' %}"></script>
{% endif %}

	<!-- deep-diff -->
	<script src="{% static 'jscol/deep-diff/deep-diff.min.js' %}"></script>


	<!-- editablegrid -->
	<script src="{% static 'js/editablegrid/editablegrid.js' %}"></script>
	<script src="{% static 'js/editablegrid/editablegrid_renderers.js' %}"></script>
	<script src="{% static 'js/editablegrid/editablegrid_editors.js' %}"></script>
	<script src="{% static 'js/editablegrid/editablegrid_validators.js' %}"></script>
	<script src="{% static 'js/editablegrid/editablegrid_utils.js' %}"></script>
	<script src="{% static 'js/editablegrid/editablegrid_charts.js' %}"></script>

{% if is_developer %}
	<script src="{% static 'jscol/colorbar/colorbar.js' %}"></script>
	<!-- 时间格式转换 moment -->
  <script src="{% static 'jscol/moment/moment.min.js' %}"></script>
	<script src="{% static 'jscol/mousewheel/jquery.mousewheel.min.js' %}"></script>
	<script src="{% static 'jscol/alertify/alertify.js' %}"></script>
	<script src="{% static 'jscol/css-element-queries/ElementQueries.js' %}"></script>
	<script src="{% static 'jscol/css-element-queries/ResizeSensor.js' %}"></script>
	<script src="{% static 'jscol/tinyscrollbar-2.5.0/simple/jquery.tinyscrollbar.js' %}"></script>
	<script src="{% static 'jscol/textfill/jquery.textfill.min.js' %}"></script>

	<script src="{% static 'jsutil/utils.js' %}"></script>
	<script src="{% static 'jsutil/backbone_utils.js' %}"></script>
	<script src="{% static 'jsutil/jquery_utils.js' %}"></script>
	<script src="{% static 'jsutil/geoutils.js' %}"></script>

	<script src="{% static 'jsutil/alerter.js' %}"></script>
	<script src="{% static 'jsutil/eventer.js' %}"></script>
	<script src="{% static 'jsutil/globaler.js' %}"></script>
	<script src="{% static 'jsutil/toggler.js' %}"></script>
	<script src="{% static 'jsutil/coorder.js' %}"></script>
	<script src="{% static 'jsutil/optioner.js' %}"></script>
	<script src="{% static 'jsutil/logger.js' %}"></script>
	<script src="{% static 'mapdata/js/mapsearchbox/mapsearchbox.js' %}"></script>

	<script src="{% static 'setting/settinger.js' %}"></script>

	<script src="{% static 'historian/historian.js' %}"></script>
	<script src="{% static 'historian/historian_view.js' %}"></script>

	<script src="{% static 'fengge/frontcore/constants.js' %}"></script>
	<script src="{% static 'fengge/frontcore/pager.js' %}"></script>
	<script src="{% static 'fengge/frontcore/moder.js' %}"></script>
	<script src="{% static 'fengge/frontcore/datapack.js' %}"></script>
	<script src="{% static 'fengge/frontcore/colorbar.js' %}"></script>
	<script src="{% static 'fengge/frontcore/plotter.js' %}"></script>
	<script src="{% static 'fengge/frontcore/plotfuncs.js' %}"></script>
	<script src="{% static 'fengge/frontcore/figure.js' %}"></script>
	<script src="{% static 'fengge/frontcore/mapdata.js' %}"></script>
	<script src="{% static 'fengge/frontcore/project.js' %}"></script>
	<script src="{% static 'fengge/frontcore/user.js' %}"></script>
	<script src="{% static 'fengge/frontcore/deal.js' %}"></script>
	<script src="{% static 'fengge/frontcore/mapcorrection.js' %}"></script>

	<script src="{% static 'fengge/ui/common/coorderView.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/utils.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/poplayer.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/map_feature.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/feature_model_parsers.js' %}"></script>
{#	<script src="{% static 'fengge/ui/pc/feature_widget_manager.js' %}"></script>#}
	<script src="{% static 'fengge/ui/pc/db_feature_opts_parsers.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/featurewidget_base.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/dsvwidget_base.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/pointwidget.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/rectwidget.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/linewidget.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/polygonwidget.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/map_feature_view.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/mappanel.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/projectpanel.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/project_map_connection.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/toolpanel.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/userpanel.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/init_app.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/app.js' %}"></script>
{% else %}
	<script src="{% static 'fengge/frontcore/col_util-min.js' %}"></script>
	<script src="{% static 'fengge/frontcore/frontcore-min.js' %}"></script>
	<script src="{% static 'fengge/ui/pc/ui-min.js' %}"></script>
{% endif %}

	{% for mod in mods %}
		{% if mod.css_list %}
			{% for css in mod.css_list %}
				{% if css|first == '/' %}
					<link rel="stylesheet" type="text/css" href="{{ css }}" />
				{% else %}
					<link rel="stylesheet" type="text/css" href="/mod/{{ mod.name }}/{{ css }}" />
				{% endif %}
			{% endfor %}
		{% endif %}
		{% if mod.js_list %}
			{% for js in mod.js_list %}
				{% if js|first == '/' %}
					<script src="{{ js }}"></script>
				{% else %}
					<script src="/mod/{{ mod.name }}/{{ js }}"></script>
				{% endif %}
			{% endfor %}
		{% endif %}
	{% endfor %}
{#	字体, 为了不卡住加载, 故放在最后 -#}
	<link rel="stylesheet" type="text/css" href="{% static 'jscol/font-awesome-4.5.0/css/font-awesome.min.css' %}">
	<!-- 窄字体 Homenaje -->
{#	<link href='http://fonts.useso.com/css?family=Homenaje' rel='stylesheet' type='text/css'>#}
	<link href="{% static 'fonts/Homenaje/Homenaje.css' %}" rel='stylesheet' type='text/css'>

	{% block script %}
	{% endblock %}
{% endblock %}
